package com.atguigu.springcloud.service.write.impl;

import com.atguigu.springcloud.dao.InterfaceWriteDao;
import com.atguigu.springcloud.entities.Payment;
import com.atguigu.springcloud.service.read.PaymentWriteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author hjl
 */
@Service
public class PaymentWriteServiceImpl implements PaymentWriteService {
    @Resource
    private InterfaceWriteDao writeDao;

    @Override
    public int insert(Payment payment) {
        return writeDao.insert(payment);
    }
}
